package org.elsfs.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Jsr330ScopeMetadataResolver;

/**
 * 启动lei
 *
 * @author zeng
 * @since 0.0.1
 */
@SpringBootApplication
@ComponentScan(value = "org.elsfs", scopeResolver = Jsr330ScopeMetadataResolver.class)
@MapperScan("org.elsfs.domain.mapper")
public class AuthorizationApplication {

  /**
   * 启动方法
   *
   * @param args 参数
   */
  public static void main(String[] args) {
    ConfigurableApplicationContext run =
        SpringApplication.run(AuthorizationApplication.class, args);
    //    RegisteredClientRepositoryImpl repository =
    // run.getBean(RegisteredClientRepositoryImpl.class);
    //    repository.save(AuthorizationConfig.registeredClientRepository());
  }
}
